package com.ruoyi.wb.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文章管理对象 wb_article
 *
 * @author ruoyi
 * @date 2024-10-14
 */
@ApiModel(value = "WbArticle", description = "文章管理实体")
public class WbArticle extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 内容的 id 主键 */
    @ApiModelProperty(value = "内容的 id 主键")
    private Long id;

    /** 内容的标题 */
    @Excel(name = "内容的标题")
    @ApiModelProperty(value = "内容的标题")
    private String title;

    /** 内容的类型 */
    @Excel(name = "内容的类型")
    @ApiModelProperty(value = "内容的类型;(新闻资讯:1, 常见问题:2,消防常识:3")
    private Long type;

    /** 内容的封面 */
    @Excel(name = "内容的封面")
    @ApiModelProperty(value = "内容的封面")
    private String contentPicture;

    /** 内容的主要内容 */
    @Excel(name = "内容的主要内容")
    @ApiModelProperty(value = "内容的主要内容")
    private String contentText;

    /** 浏览量 */
    @Excel(name = "浏览量")
    @ApiModelProperty(value = "浏览量")
    private Long contentClick;

    /** 0 上架，1 下架 */
    @Excel(name = "0 上架，1 下架")
    @ApiModelProperty(value = "0 上架，1 下架")
    private Long contentState;

    /** 简介 */
    @Excel(name = "简介")
    @ApiModelProperty(value = "简介")
    private String briefContentText;

    /** 附件 */
    @Excel(name = "附件")
    @ApiModelProperty(value = "附件")
    private String attachmentfileUrl;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getTitle() {
        return title;
    }

    public void setType(Long type) {
        this.type = type;
    }

    public Long getType() {
        return type;
    }

    public void setContentPicture(String contentPicture) {
        this.contentPicture = contentPicture;
    }

    public String getContentPicture() {
        return contentPicture;
    }

    public void setContentText(String contentText) {
        this.contentText = contentText;
    }

    public String getContentText() {
        return contentText;
    }

    public void setContentClick(Long contentClick) {
        this.contentClick = contentClick;
    }

    public Long getContentClick() {
        return contentClick;
    }

    public void setContentState(Long contentState) {
        this.contentState = contentState;
    }

    public Long getContentState() {
        return contentState;
    }

    public void setBriefContentText(String briefContentText) {
        this.briefContentText = briefContentText;
    }

    public String getBriefContentText() {
        return briefContentText;
    }

    public void setAttachmentfileUrl(String attachmentfileUrl) {
        this.attachmentfileUrl = attachmentfileUrl;
    }

    public String getAttachmentfileUrl() {
        return attachmentfileUrl;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("title", getTitle())
                .append("type", getType())
                .append("contentPicture", getContentPicture())
                .append("contentText", getContentText())
                .append("contentClick", getContentClick())
                .append("contentState", getContentState())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("briefContentText", getBriefContentText())
                .append("attachmentfileUrl", getAttachmentfileUrl())
                .toString();
    }
}